package com.txw.javaCore.model.request;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @PROJECT_NAME: JavaCoreB2
 * @DESCRIPTION: 用户登录实体信息
 * @Author: 涂玄武
 * @DATE: 2021/2/22 13:39
 */
@Data
public class UserLoginRequest implements Serializable {

    @NotBlank(message = "用户名不能为空！")
    private String userName;    //用户名，必填

    @NotBlank(message = "密码不能为空！")
    private String password;    //密码，必填

    private Integer userId; //用户ID

}
